home *** CD-ROM | disk | FTP | other *** search
- { graphdll.pas -- Sample DLL with two graphics routines }
-
- library GraphDLL;
-
- uses WinTypes, WinProcs;
-
- {- Draw circle bounded by rectangle at X, Y, X + W, Y + W }
- procedure Circle(DC: HDC; X, Y, W: Integer); export;
- begin
- Ellipse(DC, X, Y, X + W, Y + W)
- end;
-
- {- Draw rectangle with coordinates X, Y, X + W, Y + W }
- procedure Square(DC: HDC; X, Y, W: Integer); export;
- begin
- Rectangle(DC, X, Y, X + W, Y + W)
- end;
-
- {- List exported routines }
-
- exports
-
- Circle index 1,
- Square index 2;
-
- begin
- end.
-
-
- {--------------------------------------------------------------
- Copyright (c) 1991 by Tom Swan. All rights reserved.
- Revision 1.00 Date: 5/25/1991
- ---------------------------------------------------------------}
-